package com.atguigu.feign;

import com.atguigu.entity.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cloud-forum-comment")
public interface CommentFeignClient {

    @GetMapping("/comments/article/list")
    List<Comment> queryCommentList(@RequestParam Integer articleId);
}
